package jm.nj.demo13mian.demo08;
/*
 * 模仿线程安全问题:
 * 	创建3个线程,访问同一个共享的数据(票)
 */
public class Demo01Thread {
    public static void main(String[] args) {

        RunnableImpl run = new RunnableImpl();

        //开启3个线程
        Thread t0 = new Thread(run);
        Thread t1 = new Thread(run);
        Thread t2 = new Thread(run);

        t0.start();
        t1.start();
        t2.start();
    }
}
